package com.entity;

import java.util.ArrayList;
import java.util.List;

public class SetmealActivtyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public SetmealActivtyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSaidIsNull() {
            addCriterion("SAID is null");
            return (Criteria) this;
        }

        public Criteria andSaidIsNotNull() {
            addCriterion("SAID is not null");
            return (Criteria) this;
        }

        public Criteria andSaidEqualTo(Integer value) {
            addCriterion("SAID =", value, "said");
            return (Criteria) this;
        }

        public Criteria andSaidNotEqualTo(Integer value) {
            addCriterion("SAID <>", value, "said");
            return (Criteria) this;
        }

        public Criteria andSaidGreaterThan(Integer value) {
            addCriterion("SAID >", value, "said");
            return (Criteria) this;
        }

        public Criteria andSaidGreaterThanOrEqualTo(Integer value) {
            addCriterion("SAID >=", value, "said");
            return (Criteria) this;
        }

        public Criteria andSaidLessThan(Integer value) {
            addCriterion("SAID <", value, "said");
            return (Criteria) this;
        }

        public Criteria andSaidLessThanOrEqualTo(Integer value) {
            addCriterion("SAID <=", value, "said");
            return (Criteria) this;
        }

        public Criteria andSaidIn(List<Integer> values) {
            addCriterion("SAID in", values, "said");
            return (Criteria) this;
        }

        public Criteria andSaidNotIn(List<Integer> values) {
            addCriterion("SAID not in", values, "said");
            return (Criteria) this;
        }

        public Criteria andSaidBetween(Integer value1, Integer value2) {
            addCriterion("SAID between", value1, value2, "said");
            return (Criteria) this;
        }

        public Criteria andSaidNotBetween(Integer value1, Integer value2) {
            addCriterion("SAID not between", value1, value2, "said");
            return (Criteria) this;
        }

        public Criteria andAridIsNull() {
            addCriterion("ARID is null");
            return (Criteria) this;
        }

        public Criteria andAridIsNotNull() {
            addCriterion("ARID is not null");
            return (Criteria) this;
        }

        public Criteria andAridEqualTo(Integer value) {
            addCriterion("ARID =", value, "arid");
            return (Criteria) this;
        }

        public Criteria andAridNotEqualTo(Integer value) {
            addCriterion("ARID <>", value, "arid");
            return (Criteria) this;
        }

        public Criteria andAridGreaterThan(Integer value) {
            addCriterion("ARID >", value, "arid");
            return (Criteria) this;
        }

        public Criteria andAridGreaterThanOrEqualTo(Integer value) {
            addCriterion("ARID >=", value, "arid");
            return (Criteria) this;
        }

        public Criteria andAridLessThan(Integer value) {
            addCriterion("ARID <", value, "arid");
            return (Criteria) this;
        }

        public Criteria andAridLessThanOrEqualTo(Integer value) {
            addCriterion("ARID <=", value, "arid");
            return (Criteria) this;
        }

        public Criteria andAridIn(List<Integer> values) {
            addCriterion("ARID in", values, "arid");
            return (Criteria) this;
        }

        public Criteria andAridNotIn(List<Integer> values) {
            addCriterion("ARID not in", values, "arid");
            return (Criteria) this;
        }

        public Criteria andAridBetween(Integer value1, Integer value2) {
            addCriterion("ARID between", value1, value2, "arid");
            return (Criteria) this;
        }

        public Criteria andAridNotBetween(Integer value1, Integer value2) {
            addCriterion("ARID not between", value1, value2, "arid");
            return (Criteria) this;
        }

        public Criteria andSmidIsNull() {
            addCriterion("SMID is null");
            return (Criteria) this;
        }

        public Criteria andSmidIsNotNull() {
            addCriterion("SMID is not null");
            return (Criteria) this;
        }

        public Criteria andSmidEqualTo(String value) {
            addCriterion("SMID =", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidNotEqualTo(String value) {
            addCriterion("SMID <>", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidGreaterThan(String value) {
            addCriterion("SMID >", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidGreaterThanOrEqualTo(String value) {
            addCriterion("SMID >=", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidLessThan(String value) {
            addCriterion("SMID <", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidLessThanOrEqualTo(String value) {
            addCriterion("SMID <=", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidLike(String value) {
            addCriterion("SMID like", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidNotLike(String value) {
            addCriterion("SMID not like", value, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidIn(List<String> values) {
            addCriterion("SMID in", values, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidNotIn(List<String> values) {
            addCriterion("SMID not in", values, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidBetween(String value1, String value2) {
            addCriterion("SMID between", value1, value2, "smid");
            return (Criteria) this;
        }

        public Criteria andSmidNotBetween(String value1, String value2) {
            addCriterion("SMID not between", value1, value2, "smid");
            return (Criteria) this;
        }

        public Criteria andSmnumIsNull() {
            addCriterion("SMNUM is null");
            return (Criteria) this;
        }

        public Criteria andSmnumIsNotNull() {
            addCriterion("SMNUM is not null");
            return (Criteria) this;
        }

        public Criteria andSmnumEqualTo(Integer value) {
            addCriterion("SMNUM =", value, "smnum");
            return (Criteria) this;
        }

        public Criteria andSmnumNotEqualTo(Integer value) {
            addCriterion("SMNUM <>", value, "smnum");
            return (Criteria) this;
        }

        public Criteria andSmnumGreaterThan(Integer value) {
            addCriterion("SMNUM >", value, "smnum");
            return (Criteria) this;
        }

        public Criteria andSmnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("SMNUM >=", value, "smnum");
            return (Criteria) this;
        }

        public Criteria andSmnumLessThan(Integer value) {
            addCriterion("SMNUM <", value, "smnum");
            return (Criteria) this;
        }

        public Criteria andSmnumLessThanOrEqualTo(Integer value) {
            addCriterion("SMNUM <=", value, "smnum");
            return (Criteria) this;
        }

        public Criteria andSmnumIn(List<Integer> values) {
            addCriterion("SMNUM in", values, "smnum");
            return (Criteria) this;
        }

        public Criteria andSmnumNotIn(List<Integer> values) {
            addCriterion("SMNUM not in", values, "smnum");
            return (Criteria) this;
        }

        public Criteria andSmnumBetween(Integer value1, Integer value2) {
            addCriterion("SMNUM between", value1, value2, "smnum");
            return (Criteria) this;
        }

        public Criteria andSmnumNotBetween(Integer value1, Integer value2) {
            addCriterion("SMNUM not between", value1, value2, "smnum");
            return (Criteria) this;
        }

        public Criteria andResultnumIsNull() {
            addCriterion("resultnum is null");
            return (Criteria) this;
        }

        public Criteria andResultnumIsNotNull() {
            addCriterion("resultnum is not null");
            return (Criteria) this;
        }

        public Criteria andResultnumEqualTo(Integer value) {
            addCriterion("resultnum =", value, "resultnum");
            return (Criteria) this;
        }

        public Criteria andResultnumNotEqualTo(Integer value) {
            addCriterion("resultnum <>", value, "resultnum");
            return (Criteria) this;
        }

        public Criteria andResultnumGreaterThan(Integer value) {
            addCriterion("resultnum >", value, "resultnum");
            return (Criteria) this;
        }

        public Criteria andResultnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("resultnum >=", value, "resultnum");
            return (Criteria) this;
        }

        public Criteria andResultnumLessThan(Integer value) {
            addCriterion("resultnum <", value, "resultnum");
            return (Criteria) this;
        }

        public Criteria andResultnumLessThanOrEqualTo(Integer value) {
            addCriterion("resultnum <=", value, "resultnum");
            return (Criteria) this;
        }

        public Criteria andResultnumIn(List<Integer> values) {
            addCriterion("resultnum in", values, "resultnum");
            return (Criteria) this;
        }

        public Criteria andResultnumNotIn(List<Integer> values) {
            addCriterion("resultnum not in", values, "resultnum");
            return (Criteria) this;
        }

        public Criteria andResultnumBetween(Integer value1, Integer value2) {
            addCriterion("resultnum between", value1, value2, "resultnum");
            return (Criteria) this;
        }

        public Criteria andResultnumNotBetween(Integer value1, Integer value2) {
            addCriterion("resultnum not between", value1, value2, "resultnum");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}